package com.mao.object;

public class Test2 {
    public static void main(String[] args) {
        // 存储学生数据并操作学生数据
        Student s1 = new Student();
        s1.name = "Mary";
        s1.chinese = 100;
        s1.math = 90;
        s1.printAllScore();
        s1.printAverage();

        Student s2 = new Student();
        s2.name = "Jame";
        s2.chinese = 80;
        s2.math = 70;
        s2.printAllScore();
        s2.printAverage();
    }
}
